import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

export default defineConfig({
  plugins: [
    vue()
  ],

  resolve:{
    alias:{
      '@':resolve('src')
    }
  },

  server: {
    port: 3000,
    https: false, // 不支持https
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:8086',
        secure: false,
        changeOrigin: true,
      }
    }
  },

})
